


// Source File Name:   MULTIANEWARRAY.java

package com.vhly.classfile.bytecode;

import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;

// Referenced classes of package com.vhly.classfile.bytecode:
//            BaseCode

public class MULTIANEWARRAY
        implements BaseCode {

    private int offset;
    private int index;
    private int dim;

    public MULTIANEWARRAY() {
    }

    public String getName() {
        return "MULTIANEWARRAY";
    }

    public int getOp() {
        return 197;
    }

    public int length() {
        return 4;
    }

    public void read(DataInputStream din)
            throws IOException {
        index = din.readUnsignedShort();
        dim = din.read();
    }

    public void write(DataOutputStream dout)
            throws IOException {
        dout.write(197);
        dout.writeShort(index);
        dout.write(dim);
    }

    public int getOffset() {
        return offset;
    }

    public String getDescrption() {
        String ret = "";
        return ret;
    }

    public void setIndex(int in) {
        index = in;
    }

    public int getIndex() {
        return index;
    }

    public int getDim() {
        return dim;
    }

    public void setDim(int dim1) {
        dim = dim1;
    }

    public void setOffset(int off) {
        offset = off;
    }
}